let admin_server = process.env.VUE_APP_ADMIN_URL
let k8s_server = process.env.VUE_APP_K8S_URL
let ceph_server = process.env.VUE_APP_CEPH_URL


export const  loginUrl = admin_server + "/admin/auth"+"/login"

// 系统配置
export const get_menu_list = admin_server + "/admin/setting"+"/get_menu_list";
export const get_menu_tree = admin_server + "/admin/setting"+"/get_menu_tree";
export const get_menu_name = admin_server + "/admin/setting"+"/get_menu_name";
export const get_new_menu_id = admin_server + "/admin/setting"+"/get_new_menu_id";
export const menu_add = admin_server + "/admin/setting"+"/menu_add";
export const menu_delete = admin_server + "/admin/setting"+"/menu_delete";
export const menu_update = admin_server + "/admin/setting"+"/menu_update";
export const menu_select = admin_server + "/admin/setting"+"/menu_select";
export const get_user_resource = admin_server + "/admin/setting"+"/get_user_resource";

// 用户相关操作
export const user_list = admin_server + "/admin/user"+"/user_list";
export const add_user = admin_server + "/admin/user"+"/add_user";
export const delete_user = admin_server + "/admin/user"+"/delete_user";

export const role_list = admin_server + "/admin/user"+"/role_list";
export const get_role_name = admin_server + "/admin/user"+"/get_role_name";
export const update_role_perm = admin_server + "/admin/user"+"/update_role_perm";
export const get_role_perm = admin_server + "/admin/user"+"/get_role_perm";

// site
export const site_delete = admin_server + "/admin/site"+"/delete";
export const site_add = admin_server + "/admin/site"+"/add";
export const site_update= admin_server + "/admin/site"+"/update";
export const site_list= admin_server + "/admin/site"+"/list";
export const list_by_env= admin_server + "/admin/site"+"/list_by_env";
export const get_site_by_env_name= admin_server + "/admin/site"+"/get_site_by_env_name";
export const site_select = admin_server + "/admin/site"+"/select";

// 压力测试
export const pressure_setting_add = admin_server + "/admin/pressure"+"/setting_add";
export const pressure_setting_list = admin_server + "/admin/pressure"+"/setting_list";
export const pressure_setting_detail = admin_server + "/admin/pressure"+"/setting_detail";
export const pressure_setting_update = admin_server + "/admin/pressure"+"/setting_update";

export const pressure_data_list = admin_server + "/admin/pressure"+"/data_list";
export const get_pressure_name = admin_server + "/admin/pressure"+"/get_pressure_name";
export const pressure_data_detail = admin_server + "/admin/pressure"+"/data_detail";
export const pressure_data_update = admin_server + "/admin/pressure"+"/data_update";

export const pressure_data_add = admin_server + "/admin/pressure"+"/data_add";

// cmdb
export const server_list = admin_server + "/admin/cmdb"+"/server_list";
export const batch_update_server = admin_server + "/admin/cmdb"+"/batch_update_server";

export const batch_push_user = admin_server + "/admin/cmdb"+"/batch_push_user";
export const batch_delete_user = admin_server + "/admin/cmdb"+"/batch_delete_user";

export const server_host_init = admin_server + "/admin/cmdb"+"/server_host_init";
export const update_log_list = admin_server + "/admin/cmdb"+"/update_log_list";
export const init_log_list = admin_server + "/admin/cmdb"+"/init_log_list";

export const record_list = admin_server + "/admin/cmdb"+"/record_list";

export const server_user_list = admin_server + "/admin/cmdb"+"/server_user_list";

export const server_user_info = admin_server + "/admin/cmdb"+"/server_user_info";
// get_server_user只获取名字
export const get_server_user = admin_server + "/admin/cmdb"+"/get_server_user";

// admin
export const get_cluster_name_list = admin_server + "/admin"+"/get_cluster_name_list";
export const cluster_list = admin_server + "/admin"+"/cluster_list"
export const cluster_enable = admin_server + "/admin"+"/cluster_enable"
export const cluster_disable = admin_server + "/admin"+"/cluster_disable"
export const cluster_create = admin_server + "/admin"+"/cluster_create"
export const get_cluster_by_env = admin_server + "/admin"+"/get_cluster_by_env";



//project
export const get_project_list = admin_server + "/admin/project"+"/get_project_list";
export const get_env_list = admin_server +  "/admin/project"+"/get_env_list" 
export const get_all_service_list = admin_server +  "/admin/project"+"/get_all_service_list" 

export const get_project_env = admin_server + "/admin/project"+"/get_project_env"
export const get_env_by_project = admin_server + "/admin/project"+"/get_env_by_project";
export const get_project_name_list = admin_server + "/admin/project"+"/get_project_name_list";
export const get_env_name_list = admin_server +  "/admin/project"+"/get_env_name_list" 

export const get_project_leader = admin_server +  "/admin/project"+"/get_project_leader" 


// 获取es集群名称列表
export const get_es_name_list = admin_server + "/admin/es"+"/get_es_name_list";
export const get_es_index_list = admin_server + "/admin/es"+"/get_es_index_list";
export const delete_multi_index = admin_server + "/admin/es" + "/delete_multi_index"
export const get_mapping = admin_server + "/admin/es" + "/get_mapping"
export const get_response_stat = admin_server + "/admin/es" + "/get_response_stat"
export const get_api_stat = admin_server + "/admin/es" + "/get_api_stat"

// 过去两天每隔30m的pv量
export const get_request_stat = admin_server + "/admin/es" + "/get_request_stat"
export const get_client_stat = admin_server + "/admin/es" + "/get_client_stat"
export const get_requesttime_stat = admin_server + "/admin/es" + "/get_requesttime_stat"
export const sort_requesttime = admin_server + "/admin/es" + "/sort_requesttime"

//aliyun
export const get_bill_overview = admin_server + "/admin/aliyun" + "/get_bill_overview"
export const get_account_transactions = admin_server + "/admin/aliyun" + "/get_account_transactions"
export const get_region_list = admin_server + "/admin/aliyun" + "/get_region_list"
export const get_server_list = admin_server + "/admin/aliyun" + "/get_server_list"
export const get_cloud_key_pair = admin_server + "/admin/aliyun" + "/get_cloud_key_pair"

//redis 集群
export const get_cluster_nodes = admin_server + "/admin/redis_manage" + "/get_cluster_nodes"
export const get_cluster_info = admin_server + "/admin/redis_manage" + "/get_cluster_info"

//blog
export const blog_delete = admin_server + "/admin/blog"+"/delete";
export const blog_detail = admin_server + "/admin/blog"+"/detail";
export const blog_add = admin_server + "/admin/blog"+"/add";
export const blog_update= admin_server + "/admin/blog"+"/update";
export const blog_list= admin_server + "/admin/blog"+"/list";
export const blog_select = admin_server + "/admin/blog"+"/select";



//bucket
export const create_bucket = admin_server +  "/admin/bucket"+"/create_bucket" 
export const delete_bucket = admin_server +  "/admin/admin/bucket"+"/delete_bucket" 
export const get_all_buckets = admin_server +  "/admin/bucket"+"/get_all_buckets" 
export const bucket_key_list = admin_server +  "/admin/bucket"+"/bucket_key_list" 
export const delete_key = admin_server +  "/admin/bucket"+"/delete_key" 
export const put_object = admin_server +  "/admin/bucket"+"/put_object" 
// cluster
export const ceph_cluster_stat = ceph_server +  "/ceph"+"/cluster_stat" 
// pool/image
export const pool_list = ceph_server +  "/ceph"+"/pool_list" 
export const delete_pool = ceph_server +  "/ceph"+"/delete_pool" 
export const pool_obj_list = ceph_server +  "/ceph"+"/pool_obj_list" 
export const image_list = ceph_server +  "/ceph"+"/image_list" 

// auth 
export const get_service_account_list =  k8s_server + "/k8s"+"/get_service_account_list";
export const delete_service_account  = k8s_server + "/k8s"+"/delete_service_account"
export const get_cluster_role_binding_list = k8s_server + "/k8s"+"/get_cluster_role_binding_list"
export const get_cluster_role_list = k8s_server + "/k8s"+"/get_cluster_role_list"
export const get_cluster_role_detail = k8s_server + "/k8s"+"/get_cluster_role_detail"
export const get_role_binding_list = k8s_server + "/k8s"+"/get_role_binding_list"
export const get_role_list = k8s_server + "/k8s"+"/get_role_list"
export const delete_role = k8s_server + "/k8s"+"/delete_role"
export const delete_role_binding = k8s_server + "/k8s"+"/delete_role_binding"
export const get_role_detail = k8s_server + "/k8s"+"/get_role_detail"

// workload
export const delete_daemonset = k8s_server +  "/k8s"+"/delete_daemonset" 
export const get_daemonset_list = k8s_server +  "/k8s"+"/get_daemonset_list" 
export const delete_statefulset = k8s_server +  "/k8s"+"/delete_statefulset" 
export const get_statefulset_list = k8s_server +  "/k8s"+"/get_statefulset_list" 
export const get_statefulset_detail = k8s_server + "/k8s" + "/get_statefulset_detail"

// deployment
export const get_deployment_detail = k8s_server +  "/k8s"+"/get_deployment_detail" 
export const get_deployment_list = k8s_server +  "/k8s"+"/get_deployment_list" 
export const update_replicas = k8s_server +  "/k8s"+"/update_replicas" 
export const add_node_affinity = k8s_server +  "/k8s"+"/add_node_affinity" 
export const delete_node_affinity = k8s_server +  "/k8s"+"/delete_node_affinity" 
export const add_pod_anti_affinity = k8s_server +  "/k8s"+"/add_pod_anti_affinity" 
export const delete_pod_anti_affinity = k8s_server +  "/k8s"+"/delete_pod_anti_affinity" 
export const add_toleration = k8s_server +  "/k8s"+"/add_toleration" 
export const delete_toleration = k8s_server +  "/k8s"+"/delete_toleration" 
export const get_deployment_object = k8s_server +  "/k8s"+"/get_deployment_object" 
export const update_deployment_object  = k8s_server +  "/k8s"+"/update_deployment_object" 
// pod
export const update_deploy_v2 = k8s_server +  "/k8s"+"/update_deploy_v2" 
export const delete_deploy = k8s_server +  "/k8s"+"/delete_deploy" 
export const delete_pod = k8s_server +  "/k8s"+"/delete_pod" 
export const get_namespaced_pod_list = k8s_server +  "/k8s"+"/get_namespaced_pod_list" 
export const get_pod_list_by_node = k8s_server +  "/k8s"+"/get_pod_list_by_node"
export const get_node_name_list = k8s_server +  "/k8s"+"/get_node_name_list" 
export const get_pod_detail = k8s_server +  "/k8s"+"/get_pod_detail" 
export const get_container_name = k8s_server +  "/k8s"+"/get_container_name" 
export const get_pod_log = k8s_server +  "/k8s"+"/get_pod_log" 

// hpa
export const delete_hpa = k8s_server +  "/k8s"+"/delete_hpa" 
export const get_hpa_list = k8s_server +  "/k8s"+"/get_hpa_list" 
export const get_deployment_replicas = k8s_server +  "/k8s"+"/get_deployment_replicas" 
export const update_hpa_replicas = k8s_server +  "/k8s"+"/update_hpa_replicas" 

// storage
export const delete_multi_pv = k8s_server +  "/k8s"+"/delete_multi_pv" 
export const delete_pv = k8s_server +  "/k8s"+"/delete_pv" 
export const get_pv_list = k8s_server +  "/k8s"+"/get_pv_list" 
export const create_pv = k8s_server +  "/k8s"+"/create_pv" 
export const delete_pvc = k8s_server +  "/k8s"+"/delete_pvc" 
export const get_pvc_list = k8s_server +  "/k8s"+"/get_pvc_list" 
export const get_storageclass_list = k8s_server +  "/k8s"+"/get_storageclass_list" 

// security
export const delete_istio_policy = k8s_server +  "/k8s"+"/get_virtual_service_list" 
export const get_istio_policy_list = k8s_server +  "/k8s"+"/get_istio_policy_list" 
export const delete_network_policy = k8s_server +  "/k8s"+"/delete_network_policy" 
export const get_network_policy_list = k8s_server +  "/k8s"+"/get_network_policy_list" 

// service
export const delete_ingress = k8s_server +  "/k8s"+"/delete_ingress" 
export const get_ingress_list = k8s_server +  "/k8s"+"/get_ingress_list" 
export const delete_service = k8s_server +  "/k8s"+"/delete_service" 
export const get_service_list = k8s_server +  "/k8s"+"/get_service_list" 

// istio
export const get_virtual_service_list = k8s_server +  "/k8s"+"/get_virtual_service_list" 
export const delete_vs= k8s_server +  "/k8s"+"/delete_vs" 
export const update_vs= k8s_server +  "/k8s"+"/update_vs" 
export const get_vs_detail = k8s_server +  "/k8s"+"/get_vs_detail" 
export const get_gateway_list = k8s_server +  "/k8s"+"/get_gateway_list" 
export const get_destination_rule_list = k8s_server +  "/k8s"+"/get_destination_rule_list" 
export const delete_dr = k8s_server +  "/k8s"+"/delete_dr" 
export const update_breaker = k8s_server +  "/k8s"+"/update_breaker"
export const delete_breaker = k8s_server +  "/k8s"+"/delete_breaker"  
export const update_loadBalancer = k8s_server +  "/k8s"+"/update_loadBalancer" 
export const delete_loadBalancer = k8s_server +  "/k8s"+"/delete_loadBalancer" 
// 更新dr版本
export const update_versions = k8s_server +  "/k8s"+"/update_versions" 
// 更新vs超时
export const update_timeout = k8s_server +  "/k8s"+"/update_timeout" 

export const get_custom_object = k8s_server+  "/k8s"+"/get_custom_object" 
export const update_custom_object = k8s_server+  "/k8s"+"/update_custom_object" 

// cluster
export const create_namespace = k8s_server + "/k8s"+"/create_namespace";
export const get_component_status_list  = k8s_server + "/k8s"+"/get_component_status_list"
export const get_namespace_name_list =  k8s_server + "/k8s"+"/get_namespace_name_list";
export const get_namespace_list = k8s_server +  "/k8s"+"/get_namespace_list" 
export const delete_namespace = k8s_server +  "/k8s"+"/delete_namespace" 
export const update_namespace = k8s_server +  "/k8s"+"/update_namespace" 
export const get_cluster_stats  = k8s_server + "/k8s"+"/get_cluster_stats"
export const get_cluster_resources= k8s_server + "/k8s"+"/get_cluster_resources"
export const get_all_namespace_resources = k8s_server +  "/k8s"+"/get_all_namespace_resources" 

export const get_event_list = k8s_server + "/k8s"+"/get_event_list" 
export const update_node = k8s_server + "/k8s"+"/update_node"
export const get_node_detail_list = k8s_server + "/k8s"+"/get_node_detail_list"
export const get_node_stat = k8s_server+ "/k8s"+"/get_node_stat"


//config
export const get_cm_detail = k8s_server + "/k8s"+"/get_cm_detail" 
export const delete_configmap = k8s_server + "/k8s"+"/delete_configmap" 
export const get_configmap_list = k8s_server +  "/k8s"+"/get_configmap_list" 
export const delete_secret = k8s_server +  "/k8s"+"/delete_secret" 
export const get_secret_list = k8s_server +  "/k8s"+"/get_secret_list" 
export const get_secret_detail = k8s_server +  "/k8s"+"/get_secret_detail" 

//job
export const get_cronjob_list = k8s_server +  "/k8s"+"/get_cronjob_list"
export const get_job_list = k8s_server +  "/k8s"+"/get_job_list" 











